INCLUDE = -I./include
SRCFOLDER = ./src/
PARAMS = -O2
CC = g++
MPICXX = mpic++

SEQ = \
	src/main.cpp \
	src/Trie.cpp \
	src/WordDataReader.cpp \
	src/Utility.cpp

MPI = \
	src/main-mpi.cpp \
	src/Trie.cpp \
	src/WordDataReader.cpp \
	src/Utility.cpp \
	src/Master.cpp \
	src/Sieve.cpp


all: sequential

sequential: $(SEQ)
	$(CC) $(INCLUDE) $(SEQ) $(PARAMS) -o projeto-04-seq

mpi: $(MPI)
	$(MPICXX) $(INCLUDE) $(MPI) $(PARAMS) -o projeto-04-mpi
